Skip to content

gh-112075: Free-threaded dict odict basics#114778

Closed
DinoV wants to merge 2 commits intopython:mainfrom
DinoV:nogil_dict_odict_basics
Closed

gh-112075: Free-threaded dict odict basics#114778
DinoV wants to merge 2 commits intopython:mainfrom
DinoV:nogil_dict_odict_basics

Conversation

@DinoV
Copy link
Contributor

@DinoV DinoV commented Jan 31, 2024

This adds some basic locking to the ordered dict implementation. Nothing fancy, we just take some critical sections and expose _PyDict_SetItem_KnownHash_LockHeld internally. This will help make it easier to assert in the dictionary API that we have the proper locking in place.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants